package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.RpInCome;
import com.yegs.jltqc.VO.RpProduce;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RpInComeRepository extends JpaRepository<RpInCome,Long> {

    RpInCome findFirstByIdIsAfter(Long id);

    RpInCome findFirstByIdBeforeOrderByIdDesc(Long id);

    RpInCome findFirstByOrderById();

    RpInCome findFirstByOrderByIdDesc();

    Page<RpInCome> findRpProducesByCreateByEquals(String createBy, Specification<RpInCome> specification, Pageable pageable);

    Page<RpInCome> findAll(Specification<RpInCome> specification, Pageable pageable);

    RpInCome findFirstByAutoidOrderByIdDesc(Long autoid);

}
